# create a new backup server system
# NOTE: should be used with --limit most of the time
# NOTE: make sure there is room/space for this instance on the buildvmhost
# NOTE: most of these vars come from group_vars/backup_server or from hostvars

- name: make backup server system
  hosts: backup03.phx2.fedoraproject.org
  user: root
  gather_facts: True

  vars_files: 
   - /srv/web/infra/ansible/vars/global.yml
   - ${private}/vars.yml
   - ${vars}/${ansible_distribution}.yml

  tasks:
  tasks:
  - include: $tasks/hosts.yml
  - include: $tasks/yumrepos.yml
  - include: $tasks/base.yml
  - include: $tasks/fas_client.yml
  - include: $tasks/2fa_client.yml
  - include: $tasks/motd.yml
  - include: $tasks/sudo.yml
  - include: $tasks/rkhunter.yml
  - include: $tasks/denyhosts.yml
  - include: $tasks/nagios_client.yml
  - include: $tasks/mysql_server.yml
  - include: $tasks/bacula_server.yml

  handlers:
  - include: $handlers/restart_services.yml
